/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2012/07/26
* File: RenderView.h
* Blog: http://www.cnblogs.com/zengqh/
**/

#ifndef RenderView_h__
#define RenderView_h__

#include "FrameBuffer.h"

class RenderView
{
public:
	virtual ~RenderView() {}

	virtual u32 Width() const
	{
		return _width;
	}

	virtual u32 Height() const
	{
		return _height;
	}

	virtual void onAttached(FrameBuffer* fb, u32 att) = 0;
	virtual void onDetached(FrameBuffer* fb, u32 att) = 0;

protected:
	u32		_width;
	u32		_height;
};

#endif	/* RenderView_h__ */